<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../../css/demo.css" rel="stylesheet" type="text/css" />
<script src="../../js/boot.js" type="text/javascript"></script>
<script src="../../js/mini_common.js" type="text/javascript"></script>
</head>
<body>
	<h1>管理员操作日志</h1>
	<div id="datagrid1" class="mini-datagrid"  style="width: 100%;height:400px;"  allowResize="true" allowAlternating="true" onrowclick="editRow" url="javascript:getRootPath()+'/rest/tlog/list'" idField="id"  sizeList="[50,100]" pageSize="50">
		<div property="columns">
			<div field="logId" width="20"  headerAlign="center" allowSort="true">日志ID</div>
			<div field="opType" width="30"  headerAlign="center"  allowSort="true" renderer="onOpTypeStatus">操作类型</div>
			<div field="tuserName" width="20"  headerAlign="center" allowSort="true">操作人</div>
			<div field="content"  headerAlign="center" allowSort="true">操作内容</div>
			<div field="createTime" headerAlign="center" width="30" allowSort="true" dateformat="yyyy-MM-dd HH:mm:ss">新增时间</div>
		</div>
	</div>
	<div class="description">
		<h3>蓝鲸科技，科技引领潮流。</h3>
	</div>
	<script>
		mini.parse();
		var TuserID = getCookie("TuserID");
		if(TuserID == null || TuserID ==""){
			alert("您尚未登录，请登录。");
			window.location.href= getRootPath()+"../../pages/access/admin_login.html";
		}else{
			var grid = mini.get("datagrid1");
			var parms = {"userId":TuserID};
	        grid.load(parms);
		}
		
		function onOpTypeStatus(e) {
			
			var Genders_Status = [ {
				id : 0,
				text : '删除操作'
			}, {
				id : 1,
				text : '新增操作'
			}, {
				id : 2,
				text : '更新操作'
			} ];
			
			for (var i = 0, l = Genders_Status.length; i < l; i++) {
				var g = Genders_Status[i];
				if (g.id == e.value)
					return g.text;
			}
			//return "";
		}
	</script>
</body>
</html>